#ifndef __NETCOMM_NETCHATROOM_H__
#define __NETCOMM_NETCHATROOM_H__

#include "netchatter.h"

#include <set>

class NetChatRoom
{
public:
  void join(NetChatterPtr a_chatter);
  void leave(NetChatterPtr a_chatter);
  void deliver(const NetChatMsg &);

private:
  std::set<NetChatterPtr> m_chatters;
  enum { max_recent_msgs = 100 };
  chat_message_queue recent_msgs_;
};

#endif //__NETCOMM_NETCHATROOM_H__
